<?php
require(dirname(__FILE__) .'/conobj.php');



switch ($mudi){
	case 'dialingCity':
		DialingCity();
		break;

	case 'dialingPro':
		DialingPro();
		break;

	case 'pptpList':
		PptpList();
		break;

	case 'pptpCheckUser':
		PptpCheckUser();
		break;

	case 'underIE8':
		UnderIE8();
		break;

	default :
		die('err');
}

$DB->Close();



// 读取拨号VPS城市信息
function DialingCity(){
	$provID = OT::GetStr('provID');

	echo(AppDialing::CityArea($provID));
}


// 读取拨号VPS产品信息
function dialingPro(){
	$cityID = OT::GetInt('cityID');

	echo(AppDialing::ProArea($cityID));
}


// PPTP读取地区信息
function PptpList(){
	echo(AppPptp::AreaList());
}


// PPTP验证账号是否可用
function PptpCheckUser(){
	$username = OT::GetStr('username');

	$retArr = AppPptp::CheckUser($username);

	JS::AlertEnd($retArr['note']);
}


// 低于IE8浏览器继续访问
function UnderIE8(){
	$_SESSION['underIE8'] = 'true';
}
?>